import { App } from 'vue';
import { createStore } from 'vuex';
import state from './state';
import mutations from './mutations';
import actions from './actions';

const store = createStore({
  state,
  mutations,
  actions,
});

export function setupStore(app: App) {
  app.use(store);
}
